package models

import "time"

var (
	HighSchoolNature map[int]string
	HighSchoolType   map[int]string
)

// 高中
type HighSchool struct {
	Id                int64     `xorm:"pk autoincr" json:"highSchoolId"`
	ProvinceId        int64     `xorm:"comment('所属省id')" json:"highSchoolProvinceId"`
	CityId            int64     `xorm:"comment('所属市id')" json:"highSchoolCityId"`
	DistrictId        int64     `xorm:"comment('所属区县id')" json:"highSchoolDistrictId"`
	Nature            int       `xorm:"comment('高中性质 1公办 2民办')" json:"highSchoolNature"`
	MType             int       `xorm:"comment('高中类型 1省重点 2省示范 3市示范 4普通 5职高')" json:"highSchoolType"`
	Name              string    `xorm:"comment('高中名称')" json:"highSchoolName"`
	Created           time.Time `xorm:"created comment('创建时间')" json:"-"`
	Deleted           time.Time `xorm:"deleted comment('删除时间')" json:"-"`
	HighSchoolCreated string    `xorm:"-" json:"highSchoolCreated"`
	NatureShow        string    `xorm:"-" json:"highSchoolNatureShow"`
	TypeShow          string    `xorm:"-" json:"highSchoolTypeShow"`
}

func init() {
	HighSchoolNature = map[int]string{
		1: "公办",
		2: "民办",
	}

	HighSchoolType = map[int]string{
		1: "省重点",
		2: "省示范",
		3: "市示范",
		4: "普通",
		5: "职高",
	}
}
